Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-npm-tarball-url

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-npm-tarball-url

Create the tarball URL of a npm package

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9M
decreased by-7.18%
Maintainers
1
Weekly downloads
 
Created

What is get-npm-tarball-url?

The npm package 'get-npm-tarball-url' is designed to retrieve the tarball URL of a given npm package. This is useful for various purposes such as downloading the package source code, analyzing package contents, or integrating with build systems that require direct access to npm package tarballs.

What are get-npm-tarball-url's main functionalities?

Retrieve tarball URL

This feature allows users to fetch the tarball URL for a specific version of an npm package. The function 'getTarballUrl' takes a package name and a version, then logs the URL or an error if it fails.

const getNpmTarballUrl = require('get-npm-tarball-url');

async function getTarballUrl(packageName, version) {
  try {
    const url = await getNpmTarballUrl(packageName, version);
    console.log('Tarball URL:', url);
  } catch (error) {
    console.error('Error fetching tarball URL:', error);
  }
}

getTarballUrl('express', '4.17.1');

Other packages similar to get-npm-tarball-url

Keywords

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc